<template>
  <div class="bread-crumb">
    <el-breadcrumb>
      <el-breadcrumb-item :to="path">{{ titles[0] }}</el-breadcrumb-item>
      <el-breadcrumb-item>{{ titles[1] }}</el-breadcrumb-item>
      <el-breadcrumb-item>{{ titles[2] }}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  name: "BreadCrumb",

  props: {
    titles: {
      type: Array,
      default() {
        return [];
      }
    },
    path: {}
  },

  data() {
    return {};
  }
};
</script>

<style lang="scss" scoped>
.el-breadcrumb {
  margin-bottom: 20px;
}
</style>
